package com.zzy.springbootdemo.design_01_factory.spring.service.impl;

import com.zzy.springbootdemo.design_01_factory.spring.autowire.annotation.Strategy;
import com.zzy.springbootdemo.design_01_factory.spring.common.Constants;
import com.zzy.springbootdemo.design_01_factory.spring.service.RewardSpringService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Map;

@Slf4j
@Service
@Strategy(rewardType = Constants.REWARD.MATERIAL_REWOD)
public class MaterialRewardSpringService implements RewardSpringService {
    @Override
    public void giveReword(Long userId, Long rewordId, String bizId, Map<String, String> extMap) {
        //模仿发送奖励代码
        log.info("发送实物奖励给用户：{},奖励为：{}，业务code为：{}",userId,rewordId,bizId);
    }
}
